package com.tiny.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.tiny.remote.hystrix.HystrixFeignRemoteCallBack;

@FeignClient(value = "springcloud-eureka-client", fallback = HystrixFeignRemoteCallBack.class)
public interface FeignRemoteService {

	@RequestMapping(value = "/hello", method = RequestMethod.GET)
	public String hello(@RequestParam(value = "name") String name);

}